#include<iostream>
using namespace  std;
int a,b; 
int main() 
  { 
   cin>>a>>b;
    if(a+b<10)
	cout<<"water";
	else{
		if(a>b)
		cout<<"tree";
		else
		cout<<"tea";
	}
    return 0;
  } 

